<template>
	<view class="content">
		<view class="title">{{notice.title}}</view>
		<view class="ctime">{{notice.ctime}}</view>
		<view class="c" v-html="notice.content"></view>
	</view>
</template>

<script>
	import { mapState, mapGetters, mapActions, mapMutations } from 'vuex'
	export default {
		components: {
		},
		data() {
			return {
				notice: {}
			}
		},
		onLoad(options) {
			this.getNoticeDetail({id: options.id}).then(res => {
				this.notice = res.data
			})
		},
		methods: {
			...mapActions("home", ["getNoticeDetail"])
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		padding: 0 30rpx;
		.title{
			font-weight: bold;
			font-size: 34rpx;
		}
		.ctime{
			padding: 10rpx 0;
			font-size: 25rpx;
			color: #999999;
		}
	}
</style>
